﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    public class token_login_model {
        /// <summary>
        /// 区域编号
        /// </summary>
        public string mobile_code { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "请填写手机号码")]
        //[StringLength(11, ErrorMessage = "手机号码必须是11位", MinimumLength = 11)]
        public string mobile { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "请填写验证码")]
        public string code { get; set; }
    }
    public class token_cardno_model {
        /// <summary>
        /// 真实姓名
        /// </summary>
        [Required(ErrorMessage = "请填写真实姓名")]
        public string user_name { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [Required(ErrorMessage = "请填写身份证")]
        public string card_no { get; set; }
    }
    /// <summary>
    /// 实名任务
    /// </summary>
    public class token_auth_model {
        /// <summary>
        /// 真实姓名
        /// </summary>
        [Required(ErrorMessage = "请填写真实姓名")]
        public string user_name { get; set; }
        /// <summary>
        /// 证件号类型：1身份证，2护照号，3港澳台往来通行证
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [Required(ErrorMessage = "请填写证件号")]
        public string card_no { get; set; }
        /// <summary>
        /// 证件手持照片
        /// </summary>
        public string card_img { get; set; }
    }
    public class fengxinzi_cardno_model : head_req {
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string card_no { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string mobile { get; set; }
    }
    public class token_invitation_code_model {
        /// <summary>
        /// 邀请码
        /// </summary>
        [Required(ErrorMessage = "请填写身份证")]
        public string invitation_code { get; set; }
        /// <summary>
        /// 昵称
        /// </summary>
        [Required(ErrorMessage = "请填写昵称")]
        public string nick_name { get; set; }
    }
    /// <summary>
    /// 注册
    /// </summary>
    public class token_register_model {
        /// <summary>
        /// 区域编号
        /// </summary>
        public string mobile_code { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "请填写手机号码")]
        //[StringLength(11, ErrorMessage = "手机号码必须是11位", MinimumLength = 11)]
        public string mobile { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "请填写验证码")]
        public string code { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "请填写密码"), MinLength(6, ErrorMessage = "密码最短6位字符"), MaxLength(16, ErrorMessage = "密码最长不能超过16位字符")]
        [RegularExpression(@"^(?![^a-zA-Z]+$)(?!\D+$).{6,16}$", ErrorMessage = "请输入6-16位数字、字母或常用符号")]
        public string password { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        public string card_no { get; set; }
        /// <summary>
        /// 邀请码
        /// </summary>
        [Required(ErrorMessage = "请填写邀请码")]
        public string invitation_code { get; set; }

    }
    /// <summary>
    /// 后台注册
    /// </summary>
    public class token_web_register_model {
        /// <summary>
        /// 区域编号
        /// </summary>
        public string mobile_code { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "请填写手机号码")]
        //[StringLength(11, ErrorMessage = "手机号码必须是11位", MinimumLength = 11)]
        public string mobile { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "请填写密码"), MinLength(6, ErrorMessage = "密码最短6位字符"), MaxLength(16, ErrorMessage = "密码最长不能超过16位字符")]
        [RegularExpression(@"^(?![^a-zA-Z]+$)(?!\D+$).{6,16}$", ErrorMessage = "请输入6-16位数字、字母或常用符号")]
        public string password { get; set; }

        /// <summary>
        /// 真实姓名
        /// </summary>
        [Required(ErrorMessage = "请填写真实姓名")]
        public string user_name { get; set; }
        /// <summary>
        /// 身份证号
        /// </summary>
        [Required(ErrorMessage = "请填写身份证")]
        public string card_no { get; set; }
        /// <summary>
        /// 邀请码
        /// </summary>
        [Required(ErrorMessage = "请填写身份证")]
        public string invitation_code { get; set; }
    }
    /// <summary>
    /// 后台修改密码
    /// </summary>
    public class token_modify_pwd_model {
        /// <summary>
        /// 用户id
        /// </summary>
        public long user_id { get; set; }
        /// <summary>
        ///新密码
        /// </summary>
        [Required(ErrorMessage = "请填写密码"), MinLength(6, ErrorMessage = "密码最短6位字符"), MaxLength(16, ErrorMessage = "密码最长不能超过16位字符")]
        [RegularExpression(@"^(?![^a-zA-Z]+$)(?!\D+$).{6,16}$", ErrorMessage = "请输入6-16位数字、字母或常用符号")]
        public string password { get; set; }
    }
    /// <summary>
    /// 忘记密码
    /// </summary>
    public class token_forget_model {
        /// <summary>
        /// 区域编号
        /// </summary>
        public string mobile_code { get; set; }
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "请填写手机号码")]
        //[StringLength(11, ErrorMessage = "手机号码必须是11位", MinimumLength = 11)]
        public string mobile { get; set; }
        /// <summary>
        ///新密码
        /// </summary>
        [Required(ErrorMessage = "请填写密码"), MinLength(6, ErrorMessage = "密码最短6位字符"), MaxLength(16, ErrorMessage = "密码最长不能超过16位字符")]
        [RegularExpression(@"^(?![^a-zA-Z]+$)(?!\D+$).{6,16}$", ErrorMessage = "请输入6-16位数字、字母或常用符号")]
        public string password { get; set; }
        /// <summary>
        /// 确认密码
        /// </summary>
        [Compare("password", ErrorMessage = "两次密码输入不一致")]
        [Required(ErrorMessage = "请填写确认密码"), MinLength(6, ErrorMessage = "密码最短6位字符"), MaxLength(16, ErrorMessage = "密码最长不能超过16位字符")]
        public string re_password { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "请填写验证码")]
        public string code { get; set; }
    }
    /// <summary>
    /// 密码登录
    /// </summary>
    public class edit_password {
        /// <summary>
        /// 手机号
        /// </summary>
        [Required(ErrorMessage = "请填写手机号码")]
        public string mobile { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "请输入密码")]
        public string password { get; set; }

        /// <summary>
        /// oem编号
        /// </summary>
        public string oem_no { get; set; }
    }
}
